import axios from "axios"
const envUrl = import.meta.env.VITE_API_BASE_URL
// 下载文件
export const downloadOneFile = (params) => {
    return axios({
        method: "GET",
        url: envUrl + `/geneData/downloadOneFile/${params}`,
        params
    })
}
// 查询表格数据
export const searchDownloadData = (params) => {
    return axios({
        method: "GET",
        url: envUrl + `/geneData/searchDownload/`,
        params
    })
}
// 下载单个记录的文件
export const downLoadOneRecord = (params) => {
    return axios({
        method: "GET",
        url: envUrl + `/geneData/downLoadOneRecord/${params.type}/${params.fileType}/${params.taxId}`,
    })
}
// 下载多个记录的文件
export const downLoadRecord = (params) => {
    return axios({
        method: "GET",
        url: envUrl + `/geneData/downLoadBatchRecord/${params.type}/${params.fileType}/${params.ids}`,
    })
}